<?php
include_once dirname(dirname(dirname(__FILE__)))."/include/db_connect.php";
function  getBooks(){
	$conn=get_db_conn();
	$sql="select g.*,p.url from goods g left join goods_class gc on g.goods_class_id=
			gc.id left join photo p on p.goods_id=g.id where gc.name='图书';";
	$result=mysql_query($sql,$conn) or die (mysql_error());
	mysql_close($conn);
	return $result;
}
?>